package cn.stylefeng.guns.modular.hx.order.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * <p>
 * 入库订单表
 * </p>
 * @author zhucx
 * @since 2023-08-05
 */
@Data
@TableName("hx_order_put")
public class HxOrderPut implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 客户id
     */
    @TableField("customer_id")
    private Long customerId;

    /**
     * 客户名称
     */
    @TableField("customer_name")
    private String customerName;

    /**
     * 单据状态（待提交、待确认、作废、撤回、收货中、已完成）
     */
    @TableField("order_state")
    private String orderState;

    /**
     * 预约时间
     */
    @TableField("yuyue_time")
    private String yuyueTime;

    /**
     * 订单号
     */
    @TableField("order_put_number")
    private String orderPutNumber;

    /**
     * 单据类型
     */
    @TableField("order_type")
    private String orderType;

    /**
     * 收货门店id
     */
    @TableField("get_unit_id")
    private Long getUnitId;

    /**
     * 收货门店
     */
    @TableField("get_unit")
    private String getUnit;

    /**
     * 收货仓库id
     */
    @TableField("get_warehouse_id")
    private Long getWarehouseId;

    /**
     * 收货仓库
     */
    @TableField("get_warehouse")
    private String getWarehouse;

    /**
     * 发货客户id
     */
    @TableField("set_unit_id")
    private Long setUnitId;

    /**
     * 发货客户
     */
    @TableField("set_unit")
    private String setUnit;

    /**
     * 商品数
     */
    @TableField("goods_num")
    private String goodsNum;

    /**
     * 数量
     */
    @TableField("put_num")
    private String putNum;

    /**
     * 体积
     */
    @TableField("put_volume")
    private String putVolume;

    /**
     * 联系人
     */
    @TableField("contacts")
    private String contacts;

    /**
     * 联系电话
     */
    @TableField("tel")
    private String tel;

    /**
     * 创建人
     */
    @TableField("create_user_name")
    private String createUserName;

    /**
     * 提交人
     */
    @TableField("submit_user_name")
    private String submitUserName;

    /**
     * 撤销人
     */
    @TableField("revoke_user_name")
    private String revokeUserName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 提交时间
     */
    @TableField("submit_time")
    private Date submitTime;

    /**
     * 撤销时间
     */
    @TableField("revoke_time")
    private Date revokeTime;

    /**
     * 完成时间
     */
    @TableField("complete_time")
    private Date completeTime;

    /**
     * 备注
     */
    @TableField("notes")
    private String notes;

    /**
     * v1
     */
    @TableField("v1")
    private String v1;

    /**
     * v2
     */
    @TableField("v2")
    private String v2;

    /**
     * v3
     */
    @TableField("v3")
    private String v3;

    /**
     * v4
     */
    @TableField("v4")
    private String v4;

    /**
     * v5
     */
    @TableField("v5")
    private String v5;

    /**
     * v6
     */
    @TableField("v6")
    private String v6;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 新零帮到货预约id
     */
    @TableField("xlb_order_id")
    private String xlbOrderId;

    /**
     * 回传新零帮单据状态
     */
    @TableField("return_status")
    private String returnStatus;


    @Override
    public String toString() {
        return "HxOrderPut{" +
        "id=" + id +
        ", customerId=" + customerId +
        ", customerName=" + customerName +
        ", orderState=" + orderState +
        ", yuyueTime=" + yuyueTime +
        ", orderPutNumber=" + orderPutNumber +
        ", orderType=" + orderType +
        ", getUnitId=" + getUnitId +
        ", getUnit=" + getUnit +
        ", getWarehouseId=" + getWarehouseId +
        ", getWarehouse=" + getWarehouse +
        ", setUnitId=" + setUnitId +
        ", setUnit=" + setUnit +
        ", goodsNum=" + goodsNum +
        ", putNum=" + putNum +
        ", putVolume=" + putVolume +
        ", createUserName=" + createUserName +
        ", submitUserName=" + submitUserName +
        ", revokeUserName=" + revokeUserName +
        ", submitTime=" + submitTime +
        ", createTime=" + createTime +
        ", revokeTime=" + revokeTime +
        ", notes=" + notes +
        ", v1=" + v1 +
        ", v2=" + v2 +
        ", v3=" + v3 +
        ", v4=" + v4 +
        ", v5=" + v5 +
        ", v6=" + v6 +
        ", deptId=" + deptId +
        ", deliverId=" + deliverId +
        ", xlbOrderId=" + xlbOrderId +
        ", returnStatus=" + returnStatus +
                "}";
    }
}
